package org.example.entity;

import java.util.Date;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;

@TableName(value ="user")
@Data
public class User {

    @TableId(type = IdType.AUTO)
    private Integer id;
  
    private String name;
  
    private String password;

    private Date onlineTime;

    private Date createTime;

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append("(");
        sb.append("id=").append(id);
        sb.append(", name=").append(name);
        sb.append(", password=").append(password);
        sb.append(")");
        return sb.toString();
    }
}